package cn.xiangxu.core.config;

import cn.xiangxu.domain.Teacher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 王杨帅
 * @create 2018-08-10 20:59
 * @desc bean配置类
 **/
@Configuration
public class Beans {

    @Bean(value = "teacher")
    public Teacher buildTeacher() {
        return new Teacher();
    }

}

